package com.notecalendar.evernote.exception;

/**
 * Class base for exceptions on EvernoteUtil class
 * @author bcamcereijo
 *
 */
public class EvernoteBaseException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	protected final String message = "EvernoteUtil exception:";
	
	public final static int BASE_EXCEPTION = 0;
	
	protected int exceptionType = EvernoteBaseException.BASE_EXCEPTION;
	protected String exceptionDesc;
	
	
	public EvernoteBaseException(){
	}
	
	
	public EvernoteBaseException(String exceptionDes){
		setExceptionDesc(exceptionDes);
	}
	
	/**
	 * @return the message
	 */
	public String getMessage() {
		return message + getExceptionDesc();
	}
	
	/**
	 * @return the exceptionType
	 */
	public int getExceptionType() {
		return exceptionType;
	}

	/**
	 * @param exceptionType the exceptionType to set
	 */
	public void setExceptionType(int exceptionType) {
		this.exceptionType = exceptionType;
	}

	/**
	 * @return the exceptionDesc
	 */
	public String getExceptionDesc() {
		return exceptionDesc;
	}

	/**
	 * @param exceptionDesc the exceptionDesc to set
	 */
	public void setExceptionDesc(String exceptionDesc) {
		this.exceptionDesc = exceptionDesc;
	}
	
}
